home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 631 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.0 KB

  1. Path: chronicle.mti.sgi.com!austern
  2. From: Roman Lechtchinsky <wolfro@cs.tu-berlin.de>
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Hiding Overloaded Functions
  5. Date: 05 Mar 1996 09:42:35 PST
  6. Organization: Technical University of Berlin
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <313C07C7.7105@cs.tu-berlin.de>
  9. References: <4h9psh$fnv@news.cs.tu-berlin.de> <xsovikkwkg2.fsf@avs.cs.rpi.edu>
  10. NNTP-Posting-Host: isolde.mti.sgi.com
  11. X-Original-Date: Tue, 05 Mar 1996 10:22:15 +0100
  12. X-Mailer: Mozilla 2.0 (Win95; I)
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBVAwUBMTx9Iky4NqrwXLNJAQFh7AIAqMRsriXqEEIdCFtAYY5pHR91MhXS/LpX
  15.     k0za8GIDgMIzd4WT++SCMtRdcRWdLEXg9Lo48icVNpO7h3Hc+m06dQ==
  16.     =29vO
  17. Originator: austern@isolde.mti.sgi.com
  18.  
  19. David Vandevoorde wrote:
  20. > >>>>> "RL" == Roman Lechtchinsky <wolfro@cs.tu-berlin.de> writes:
  21. > [...]
  22. > RL> In the present standard as well as in the April draft, there
  23. > RL> exists one rule which I don't like at all. Basically, the concept
  24. > RL> is that if several overloaded functions are defined in a class A
  25. > RL> and one of these functions is redefined in a derived class B this
  26. > RL> function hides all functions inherited from A that have the same
  27. > RL> name:
  28. > [...]
  29. > C++ look-up rules are already quite complicated. If this rule were
  30. > relaxed the way you suggest, I imagine things would get even worse
  31. > (I think you would have to define some kind of iteration between
  32. > name look-up and overload resolution).
  33.  
  34. I don't see your point. The rules would be no more complicated than they are 
  35. now. The only difference would be that overloaded functions which are hidden 
  36. in derived classes now would be visible. The usual overload resolution could 
  37. be used.
  38.  
  39. Bye
  40.  
  41. Roman
  42. ---
  43. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  44.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  45.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  46.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  47.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  48. ]
  49.